ISnapshotStorage
StockSharp.Algo.Storages
スナップショット価格のストレージへのアクセスのためのインターフェイス。
実装: ISnapshotStorage
メソッド
ClearAsync
public ValueTask ClearAsync(TKey key, CancellationToken cancellationToken)
result = iSnapshotStorage.ClearAsync(key, cancellationToken)
Remove snapshot for the specified key.
- key
- Key.
- cancellationToken
- CancellationToken
戻り値: ValueTask
GetAllAsync
public IAsyncEnumerable<TMessage> GetAllAsync(DateTime? from, DateTime? to)
result = iSnapshotStorage.GetAllAsync(from, to)
Get all snapshots.
- from
- Start date, from which data needs to be retrieved.
- to
- End date, until which data needs to be retrieved.
戻り値: All snapshots.
GetAsync
public ValueTask<TMessage> GetAsync(TKey key, CancellationToken cancellationToken)
result = iSnapshotStorage.GetAsync(key, cancellationToken)
Get snapshot for the specified key.
- key
- Key.
- cancellationToken
- CancellationToken
戻り値: Snapshot.